import { ref, onMounted } from "vue";
import {getAssetsListAPI} from '@/api/device'
// 设备名称
export const useMaintaintList = () => {
  // 收费项目列表
  const maintainList = ref([]);
  // 定义方法
  const getMaintainList = async () => {
    let res = await getAssetsListAPI();
    maintainList.value = res.data;
  };

  onMounted(() => {
    getMaintainList();
  });
  return maintainList;
};